Repository navigation
fix(app-shell): the chart view's view bar starts its icon on the list page's 16px edge - #35826
Conversation
… page's 16px edge The chart view's own copy of the view bar kept sm:px-4 after the list view's bar moved to sm:pl-2.5 sm:pr-2, so at sm and up its view icon sat at 22 while the list's sat at 16. It now carries the list bar's padding. Below sm both keep px-2. The list renderer's inSetup input, read only in a memo dependency list since the Setup row-number line went, is removed end to end. The list left-edge geometry spec gains a chart view bar, read from the renderer's source, pinned to the list's view icon at 1280 and 375. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Cb8qTxAVaE2QKwquQU
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Final head · area ux-4 · 2026-11-20T10:36Z
os-dev-report: 7037362599 on #35729. Chart view bar at 1280: icon 22 → 16 and right padding 16 → 8, the same as the list bar; 375 unchanged at 14. Pinned in |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对ACCEPT · head Routing: no Checked:
No required item. |
|
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU Landing · area ux-4 · 2026-11-20T10:40Z
Head |
Requested by Bill · project thread
Fixes #35729
repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
objectViewListRenderer.tsx,chartPage):sm:px-4becomessm:pl-2.5 sm:pr-2, the same values asTOOLBAR_ROWinplugin-list'slistToolbarRow.ts(not imported:plugin-list's index does not export the constant, and exporting it was outside the claim). Fromsmup the switcher's 6px-padded icon lands on 16, where the list's does. Belowsmboth bars keeppx-2, so 375 is unchanged.inSetupinput goes end to end (claim amendment 2, 7036258221). Since 列表页左侧一条线对齐:勾选列在列多时被压到 16 宽并贴住屏幕左边;页面栏、视图栏、表格、页脚的左起点各不相同 #35663 removed the Setup app's row-number line,useObjectViewListRendererread it only in therenderListViewmemo's dependency list. Removed: that dependency, the destructured prop and its type, the type-onlyisSetupAppSegmentimport (renderer); the derivation, its stale objectui#12606 comment, its pass and theisSetupAppSegmentimport (ObjectView.tsx). Remaining readers: none in either file. OtherinSetup/isSetupAppSegmentreaders in app-shell (ResourceListPage,RecordDetailView) are their own and untouched.Tests
ui/e2e/list-left-edge-35663.spec.ts(列表页左侧一条线对齐:勾选列在列多时被压到 16 宽并贴住屏幕左边;页面栏、视图栏、表格、页脚的左起点各不相同 #35663's geometry spec) gains a chart view bar: its class is read out ofobjectViewListRenderer.tsxat run time (thechartPagebar), and a second bar with that class, holding the real switcher class, sits under the list's view bar. At 1280 (wide and narrow cases) its icon is on the 16 edge and on the list view's icon (±1), and its right padding equals the list bar's; at 375 its icon equals the list's (and ≥12).sm:px-4, the two 1280 cases go red (chart view-bar icon starts at 22, not 16); 375 and the scroll case stay green, as they should.inSetup(grep overui/packages/*/srcforinSetup,isSetupAppSegmentandsm:px-4 sm:py-0besideObjectView/objectViewListRenderer: 0 hits), and jsdom has no layout for the padding.Acceptance notes
Readings (the e2e harness, main area 1024 wide beside a 256 sidebar at 1280; x from the main area's left):
records-forms.list-view-capabilitiessteps[11] (from 列表页左侧一条线对齐:勾选列在列多时被压到 16 宽并贴住屏幕左边;页面栏、视图栏、表格、页脚的左起点各不相同 #35663) states the list page's left edge; a chart-view sentence there would be outside the claim's surface. carrier: none.Screenshots (1280 narrow, 1280 wide, 375; the fixture's icons are blank 16px boxes):
objectstack-seat5/area-ux/ux-4/chart/card-35729/in the project files.Verification
Read first:
ui/packages/app-shell/src/views/objectViewListRenderer.tsx, thechartPagebar class; then theinSetupremoval in the same file andObjectView.tsx.Two-minute check: open an object with a chart view at 1280, switch between a list view and the chart view; the view switcher's icon stays put.
Local readings
pnpm --filter @object-ui/app-shell type-check: exit 0 (afterpnpm --filter '@object-ui/app-shell^...' build).vitest run packages/app-shell/src/views/ObjectView.: 93 files, 826 tests passed.node scripts/pm/dispatch-gates.mjs --commands: 38 commands derived, all exit 0 (loggates-ran.logbeside the screenshots)node scripts/pm/overlap-check.mjs --branch=HEAD: clean (origin/main merges cleanly; feat(list): select a cell with a click, edit with a double-click, Enter or typing; no inline-edit toggle (#35684, #35687) #35747 sharesobjectViewListRenderer.tsx, merges cleanly).🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CasQ2sQyph6xUMdArZ